package com.dhcc.cdc.busi.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.dhcc.cdc.sys.entity.CdcDataEntity;
import com.dhcc.core.framework.base.entity.DataEntity;

import java.util.Date;


/**
 * 检验报告
 * 
 * @ClassName: LabReportEntity
 * @Description: TODO
 * @author jumper
 * @date 2021-04-26 16:21:41
 */
@TableName("t_cdc_bs_lab_report") 
public class CdcLabReportEntity extends DataEntity<CdcLabReportEntity> {
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	
	//就诊记录
	private Long episodeId;	
	//索引码
	private String xcode;	
	//标本送检记录
	private Long labVisitId;	
    @TableField(exist = false)
    private CdcLabVisitEntity labVisit;
	//报告ID
	private String reportId;	
	//序号
	private String reportNum;	
	//结果
	private String result;	
	//状态
	private Long busLabReportStatusId;	
    @TableField(exist = false)
    private CdcDictionaryEntity busLabReportStatus;
	//录入日期
    @JSONField(format="yyyy-MM-dd")
	private Date reportDate;	
	//录入人
	private String reportUserName;	
	//审核日期
    
    @JSONField(format="yyyy-MM-dd")
	private Date checkDate;	
	//审核人
	private String checkUserName;	
	//元数据
	private Long dataId;	
    @TableField(exist = false)
    private CdcDataEntity data;
	//是否有效
	private Integer isActive;	
    
    @TableField(exist = false)
    private CdcLabSetEntity labset;

	public CdcLabSetEntity getLabset() {
        return labset;
    }
    public void setLabset(CdcLabSetEntity labset) {
        this.labset = labset;
    }
    /**
	 * 设置：就诊记录
	 */
	public void setEpisodeId(Long episodeId) {
		this.episodeId = episodeId;
	}
	/**
	 * 获取：就诊记录
	 */
	public Long getEpisodeId() {
		return episodeId;
	}
	/**
	 * 设置：索引码
	 */
	public void setXcode(String xcode) {
		this.xcode = xcode;
	}
	/**
	 * 获取：索引码
	 */
	public String getXcode() {
		return xcode;
	}
	/**
	 * 设置：标本送检记录
	 */
	public void setLabVisitId(Long labVisitId) {
		this.labVisitId = labVisitId;
	}
	/**
	 * 获取：标本送检记录
	 */
	public Long getLabVisitId() {
		return labVisitId;
	}
	/**
	 * 设置：报告ID
	 */
	public void setReportId(String reportId) {
		this.reportId = reportId;
	}
	/**
	 * 获取：报告ID
	 */
	public String getReportId() {
		return reportId;
	}
	/**
	 * 设置：序号
	 */
	public void setReportNum(String reportNum) {
		this.reportNum = reportNum;
	}
	/**
	 * 获取：序号
	 */
	public String getReportNum() {
		return reportNum;
	}
	/**
	 * 设置：结果
	 */
	public void setResult(String result) {
		this.result = result;
	}
	/**
	 * 获取：结果
	 */
	public String getResult() {
		return result;
	}
	/**
	 * 设置：状态
	 */
	public void setBusLabReportStatusId(Long busLabReportStatusId) {
		this.busLabReportStatusId = busLabReportStatusId;
	}
	/**
	 * 获取：状态
	 */
	public Long getBusLabReportStatusId() {
		return busLabReportStatusId;
	}
	/**
	 * 设置：录入日期
	 */
	public void setReportDate(Date reportDate) {
		this.reportDate = reportDate;
	}
	/**
	 * 获取：录入日期
	 */
	public Date getReportDate() {
		return reportDate;
	}
	/**
	 * 设置：录入人
	 */
	public void setReportUserName(String reportUserName) {
		this.reportUserName = reportUserName;
	}
	/**
	 * 获取：录入人
	 */
	public String getReportUserName() {
		return reportUserName;
	}
	/**
	 * 设置：审核日期
	 */
	public void setCheckDate(Date checkDate) {
       
            this.checkDate =checkDate;
        
	}
	/**
	 * 获取：审核日期
	 */
	public Date getCheckDate() {
		return checkDate;
	}
	/**
	 * 设置：审核人
	 */
	public void setCheckUserName(String checkUserName) {
		this.checkUserName = checkUserName;
	}
	/**
	 * 获取：审核人
	 */
	public String getCheckUserName() {
		return checkUserName;
	}
	/**
	 * 设置：元数据
	 */
	public void setDataId(Long dataId) {
		this.dataId = dataId;
	}
	/**
	 * 获取：元数据
	 */
	public Long getDataId() {
		return dataId;
	}
	/**
	 * 设置：是否有效
	 */
	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}
	/**
	 * 获取：是否有效
	 */
	public Integer getIsActive() {
		return isActive;
	}
    public CdcLabVisitEntity getLabVisit() {
        return labVisit;
    }
    public void setLabVisit(CdcLabVisitEntity labVisit) {
        this.labVisit = labVisit;
    }
    public CdcDictionaryEntity getBusLabReportStatus() {
        return busLabReportStatus;
    }
    public void setBusLabReportStatus(CdcDictionaryEntity busLabReportStatus) {
        this.busLabReportStatus = busLabReportStatus;
    }
    public CdcDataEntity getData() {
        return data;
    }
    public void setData(CdcDataEntity data) {
        this.data = data;
    }
    
}
